package com.example.othree.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.othree.entity.MainCropsHs;
import com.example.othree.mapper.MainCropsHsMapper;
import com.example.othree.service.MainCropsHsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zogran
 * @since 2024-12-13
 */
@Service
public class MainCropsHsServiceImpl extends ServiceImpl<MainCropsHsMapper, MainCropsHs> implements MainCropsHsService {

    @Autowired
    private MainCropsHsMapper mainCropsHsMapper;

    @Override
    public Page<MainCropsHs> pageList(Page<MainCropsHs> page, QueryWrapper<MainCropsHs> mainCropsHsQueryWrapper) {
        return mainCropsHsMapper.selectPage(page, mainCropsHsQueryWrapper);
    }
}
